  <div class="site-showcase">
  <!-- Start Page Header -->
  <div class="parallax page-header" style="background-image:url(http://placehold.it/1200x260&amp;text=IMAGE+PLACEHOLDER);">
  		<div class="container">
        	<div class="row">
            	<div class="col-md-12">
  					<h1><?php echo __('My properties'); ?></h1>
        		</div>
           </div>
       </div>
  </div>
  <!-- End Page Header -->
  </div>
  <!-- Start Content -->
  <div class="main" role="main">
      <div id="content" class="content full">
        	<div class="container">
          		<div class="page">
        			<div class="row">
              			<div class="col-md-12">
                  		<div class="block-heading" id="details">
                     			<a href="<?php echo $this->Html->url(array('controller'=>'properties','action'=>'add')); ?>" class="btn btn-sm btn-primary pull-right"><?php echo __('Add new property'); ?> <i class="fa fa-long-arrow-right"></i></a>
                         		<h4><span class="heading-icon"><i class="fa fa-home"></i></span><?php echo __('Listed Properties'); ?></h4>
                     		</div>
        					<div class="properties-table">
                            <table class="table table-striped">
                                <thead>
                                    <tr>
                                        <th><?php echo __('Image'); ?></th>
                                        <th><?php echo $this->Paginator->sort('Property.title'); ?></th>
                                        <th><?php echo $this->Paginator->sort('property_type_id'); ?></th>
                                        <th><?php echo $this->Paginator->sort('contract_type'); ?></th>
                                        <th><?php echo $this->Paginator->sort('price'); ?></th>
                                        <th><?php echo __('Actions'); ?></th>
                                    </tr>
                                </thead>
                                <tbody>
								<?php  foreach ($properties as $property): ?>
                                    <tr>
                                        <td>
											<?php
											 
											//$image1	=	' ';
											if(!empty($property['Property']['image1']))
											$image1	=	'/files/property/thumb/'.$property['Property']['image1'];
											else
											$image1	=	'http://placehold.it/600x400&text=IMAGE+COMMING+SOON';

											
										echo	$this->Html->link($this->Html->image($image1,array('width' => '100px','alt'=>'')),array('controller'=>'properties','action'=>'view',$property['Property']['id'],Inflector::slug(strtolower($property['Property']['title']),'-')),array('escape' => false)); ?>                                        </td>
                                        <td><?php echo $this->Html->link(__(substr($property['Property']['title'],0,30)),array('controller'=>'properties','action'=>'view',$property['Property']['id'],Inflector::slug(strtolower($property['Property']['title']),'-'))); ?></td>
                                        <td><?php if(isset($property['PropertyType']['title'])) echo Inflector::humanize($property['PropertyType']['title']); ?></td>
                                        <td><?php if(isset($property['Property']['contract_type'])) echo Inflector::humanize($property['Property']['contract_type']); ?></td>
                                        <td><div class="price"><strong><?php if(isset($websiteSettings['currency_symbol'])) echo __($websiteSettings['currency_symbol']); ?></strong><span><?php if(isset($property['Property']['price'])) echo number_format($property['Property']['price']); ?></span></div></td>
                                        <td>
                                            <a href="<?php echo $this->Html->url(array('controller'=>'properties','action'=>'edit',$property['Property']['id'])); ?>" class="action-button"><i class="fa fa-pencil"></i> <span><?php echo __('Edit'); ?></span></a>
                                            <a href="<?php echo $this->Html->url(array('controller'=>'properties','action'=>'view',$property['Property']['id'],Inflector::slug(strtolower($property['Property']['title']),'-'))); ?>" class="action-button"><i class="fa fa-eye"></i> <span><?php echo __('View'); ?></span></a>
                                            
                                            <?php echo $this->Form->postLink('<i class="fa fa-ban"></i> <span>'.__('Remove').'</span>', array('action' => 'delete', $property['Property']['id']), array('class'=>"action-button",'escape' => false), __('Are you sure you want to delete # %s?', $property['Property']['id'])); ?>
                                        </td>
                                    </tr>
								<?php endforeach; ?>
                                </tbody>
                             </table>
                          </div>
                          <div class="text-align-center">
                          <?php echo $this->element('paginate'); ?>
                  		</div>
                      </div>
          			</div>
        		</div>
      		</div>
    	</div>
  </div>
